package org.jsbd.boss.domian.channel;

import java.math.BigDecimal;

import org.jsbd.boss.annotation.ExportExcelAnnotation;
import org.jsbd.boss.common.DataGridModel;

/**
 * 
 * apk可用任务量
 * 
 * @author <a href="mailto:xupengcheng@zhexinit.com" >徐鹏程</a>
 * @version 1.0.0
 */
public class ApkTaskInfo extends DataGridModel {
	/**
	 * serialVersionUID TODO 请描述这个变量的含义
	 */
	private static final long serialVersionUID = 8435442643845386433L;
	// apk可用任务总量
	@ExportExcelAnnotation(index = 3)
	private int total;
	@ExportExcelAnnotation(index = 5)
	private int execTotal;
	@ExportExcelAnnotation(index = 1)
	private String mark;
	@ExportExcelAnnotation(index = 2)
	private String day;
	@ExportExcelAnnotation(index = 0)
	private String apkName;
	private String currTime;
	@ExportExcelAnnotation(index = 4)
	private int mobileNum;
	@ExportExcelAnnotation(index = 8)
	private int payNum;
	@ExportExcelAnnotation(index = 9)
	private Double payratio = 0d;
	@ExportExcelAnnotation(index = 6)
	private Double execRate;
	@ExportExcelAnnotation(index = 7)
	private Double mobileRate;
	public int getTotal() {
		return total;
	}

	public void setTotal(int total) {
		this.total = total;
	}

	public String getMark() {
		return mark;
	}

	public void setMark(String mark) {
		this.mark = mark;
	}

	public int getExecTotal() {
		return execTotal;
	}

	public void setExecTotal(int execTotal) {
		this.execTotal = execTotal;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public String getDay() {
		return day;
	}

	public void setDay(String day) {
		this.day = day;
	}

	public String getApkName() {
		return apkName;
	}

	public void setApkName(String apkName) {
		this.apkName = apkName;
	}

	public Double getExecRate() {
		execRate = 0d;
		if (total > 0) {
			BigDecimal b = new BigDecimal((double) execTotal / total);
			execRate =b.setScale(4, BigDecimal.ROUND_HALF_UP).doubleValue();
			return execRate;
		} else {
			return execRate;
		}
	}

	public Double getMobileRate() {
		mobileRate = 0d;
		if (execTotal > 0) {
			BigDecimal b = new BigDecimal((double) mobileNum / execTotal);
			mobileRate =b.setScale(4, BigDecimal.ROUND_HALF_UP).doubleValue();
			return mobileRate;
		} else {
			return mobileRate;
		}
	}

	public String getCurrTime() {
		return currTime;
	}

	public void setCurrTime(String currTime) {
		this.currTime = currTime;
	}

	public int getMobileNum() {
		return mobileNum;
	}

	public void setMobileNum(int mobileNum) {
		this.mobileNum = mobileNum;
	}

	public int getPayNum() {
		return payNum;
	}

	public void setPayNum(int payNum) {
		this.payNum = payNum;
	}

	public Double getPayratio() {
		return payratio;
	}

	public void setPayratio(Double payratio) {
		this.payratio = payratio;
	}
	

}
